﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TVC_WEB.UserControl
{
    public partial class Search : System.Web.UI.UserControl
    {
        String sErr = "";
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            if (txtSearch.Text != "")
            {
             //   BUS.ProductsControl ctr = new BUS.ProductsControl();
             //   String value = "N'%" + txtSearch.Text + "%'";
             //   DataTable dt = ctr.Search("NameVN", value, "like", "", ref sErr);
             ////   Session["dt_product"] = dt;
                Response.Redirect("prolist.aspx?content=" + txtSearch.Text.Trim());
            }
        }
    }
}